﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace FY2013.Model.UserModels
{
    [PropertiesMustMatch("NewPassword", "ConfirmPassword", ErrorMessage = "两次新密码输入新密码必须相同！")]
    public class ChangePasswordModel
    {
        [Required]
        [DataType(DataType.Password)]
        [Display(Name="请输入登录密码")]
        public string OldPassword { get; set; }

        [Required]
        [ValidatePasswordLength]
        [DataType(DataType.Password)]
        [Display(Name="请输入新密码")]
        public string NewPassword { get; set; }

        [Required]
        [DataType(DataType.Password)]
        [Display(Name="请再次输入新密码")]
        public string ConfirmPassword { get; set; }
    }
}
